[Manager Summary]

PMError


Returns the result code returned by the last Carbon Printing Manager function.
OSStatus PMError()
DISCUSSION
The PMError function returns the result code reported by the last Carbon Printing Manager routine. If an error that does not belong to the Carbon Printing Manager occurs during the printing process, your application can retrieve it with a call to PMError. If you encounter an error in the middle of a printing loop, do not end printing abruptly; call the close routines for any open routines you have already made and let the Carbon Printing Manager terminate properly.

Do not display any alert or dialog boxes to report an error until the end of your printing loop. Once at the end, check for the error again; if there is no error, assume that printing completed normally. If the error is still present, then you can alert the user.
CARBON PORTING NOTES
 The PMError function replaces the Printing Manager function PrError. However, you should reduce your application use of PMError and instead respond to result codes as soon as they are returned by Carbon Printing Manager functions.

Last modified: 5/7/99. Status: Draft Copyright 1999 Apple Computer, Inc. All rights reserved.